'use strict'
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.

const path = require('path')

module.exports = {
  devServer: {
    port: 8085, // 端口号
    host: 'localhost',
    https: false, // https:{type:Boolean}
    open: true, //配置自动启动浏览器
    proxy: { // 配置跨域,index.php代表访问的api名字，如http://localhost/index.php?data=123
      '/index.php': {
        target: 'http://api.dataoke.com',
        ws: true,
        changOrigin: true,
        // pathRewrite: {
        //     '^api': '/api'
        // }
      }
    },
  }
}
